from django.shortcuts import render_to_response
from django.http import Http404, HttpResponse, HttpResponseRedirect
# from project.application.web_search....
from searchengine.web_search import google


def search(request):
    if request.POST:
        print request.POST['term']
        return HttpResponseRedirect("/")
    else:
        return render_to_response('pesquisa.html')
